package com.scs.application.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.scs.application.core.entity.DataEntity;
import com.scs.application.modules.upgrade.db.annotation.EntityClassAnnotation;
import com.scs.application.modules.upgrade.db.annotation.EntityFieldAnnotation;
import com.scs.application.modules.upgrade.db.enums.EntityFieldType;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @Description:运营评价实体
 */
@Data
@Accessors(chain = true)
@EntityClassAnnotation(remark = "运营评价表")
@TableName("sys_appraise")
public class Appraise extends DataEntity {
    // id ,在父类中处理

    @EntityFieldAnnotation(
            text = "库存周转率",
            type = EntityFieldType.DOUBLE,
            length = "",
            not_null = true,
            default_value = "0.0",
            comment = ""
    )
    private Double rotationRate;


    @EntityFieldAnnotation(
            text = "库存周转率得分",
            type = EntityFieldType.DOUBLE,
            length = "",
            not_null = true,
            default_value = "0.0",
            comment = ""
    )
    private Double rotationRateScore;

    @EntityFieldAnnotation(
            text = "平均周转天数",
            type = EntityFieldType.DOUBLE,
            length = "",
            not_null = true,
            default_value = "0.0",
            comment = ""
    )
    private Double turnoverDays;

    @EntityFieldAnnotation(
            text = "备货满足率",
            type = EntityFieldType.DOUBLE,
            length = "",
            not_null = true,
            default_value = "0.0",
            comment = ""
    )
    private Double choiceRate;

    @EntityFieldAnnotation(
            text = "备货满足率得分",
            type = EntityFieldType.DOUBLE,
            length = "",
            not_null = true,
            default_value = "0.0",
            comment = ""
    )
    private Double choiceRateScore;

    @EntityFieldAnnotation(
            text = "采购响应率",
            type = EntityFieldType.DOUBLE,
            length = "",
            not_null = true,
            default_value = "0.0",
            comment = ""
    )
    private Double purchaseRate;

    @EntityFieldAnnotation(
            text = "采购响应率得分",
            type = EntityFieldType.DOUBLE,
            length = "",
            not_null = true,
            default_value = "0.0",
            comment = ""
    )
    private Double purchaseRateScore;

    @EntityFieldAnnotation(
            text = "得分",
            type = EntityFieldType.DOUBLE,
            length = "",
            not_null = true,
            default_value = "0.0",
            comment = ""
    )
    private Double score;

    @EntityFieldAnnotation(
            text = "日期",
            type = EntityFieldType.DATE,
            length = "",
            not_null = true,
            default_value = "",
            comment = ""
    )
    private Date busDate;

    @EntityFieldAnnotation(
            text = "库存周转率百分比",
            type = EntityFieldType.DOUBLE,
            length = "",
            not_null = true,
            default_value = "0.0",
            comment = ""
    )
    private Double rotationPercent;

    @EntityFieldAnnotation(
            text = "备货满足率百分比",
            type = EntityFieldType.DOUBLE,
            length = "",
            not_null = true,
            default_value = "0.0",
            comment = ""
    )
    private Double choicePercent;

    @EntityFieldAnnotation(
            text = "采购响应率百分比",
            type = EntityFieldType.DOUBLE,
            length = "",
            not_null = true,
            default_value = "0.0",
            comment = ""
    )
    private Double purchasePercent;

}
